package ace.module.upms.core.impl.manager;

import ace.cmp.data.spring.data.jdbc.querydsl.rsql.core.manager.DtoManager;
import ace.module.upms.api.model.dto.UpmsApplicationDto;
import ace.module.upms.core.impl.dao.entity.UpmsApplication;

/**
* 权限应用 spring data jdbc querydsl rsql manager.
*
* @author Caspar
*/
public interface UpmsApplicationManager extends DtoManager<UpmsApplication, Long, UpmsApplicationDto> {

  UpmsApplication getByOutTypeAndOutId(String outType, String outId);

  UpmsApplication getAndCheckByOutTypeAndOutId(String outType, String outId);

  UpmsApplicationDto getDtoByOutTypeAndOutId(String outType, String outId);

  UpmsApplicationDto getAndCheckDtoByOutTypeAndOutId(String outType, String outId);

  UpmsApplication getByAdminApplication();

  UpmsApplicationDto getDtoByAdminApplication();

  UpmsApplicationDto getDtoAndCheckNotNullByAdminApplication();
}
